package activity;


       
import com.shuzi.movie.phone.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;



public abstract class BaseActivity extends Activity{

	private Button back = null;
	protected TextView title = null;
	protected RelativeLayout containView = null;
	
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.base);
		
		back = (Button) findViewById(R.id.back);
		containView = (RelativeLayout) findViewById(R.id.baseContainview);
		title = (TextView) findViewById(R.id.title);
		
		back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
		
		title.setText(getIntent().getStringExtra("title"));		
		
	}

	
}
